<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script src="https://unpkg.com/vue@next"></script>
<div id="app">
    <button @click="clickEvent">click Me</button>
    <button @click="clickEvent2()">click you</button>
    <button @click="clickEvent3(count2)">click He</button>
</div>
<script>
    const vueOpt = {
        data(){
            return {
                count: 1,
                count2: 5
            }
        },
        methods: {
            clickEvent(){
                alert(this.count)
            },

            clickEvent2(){
                alert(this.count)
            },

            clickEvent3(data){
                alert(data);
            }
        }
    }

    Vue.createApp(vueOpt).mount('#app')
</script>
</body>
</html>
